const store = require("./store")
const { onChangeName, onChangeAge } = require("./actions/index")
store.subscribe(() => {
  console.log(store.getState())
})

store.dispatch(onChangeName("James"))
store.dispatch(onChangeAge(100))
